package com.cungmua.app.model.response;

import com.cungmua.app.model.Category;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

/**
 * Created by kelvin.nguyen on 6/17/14.
 */
public class GetCategoryResponse extends CungMuaResponse {
    private List<Category> categories;

    public GetCategoryResponse(@JsonProperty("Msg") String message, @JsonProperty("Code") int code) {
        super(message, code);
    }

    @JsonProperty("Data")
    public void setData(List<Category> categories) {
        this.categories = categories;
    }
    @Override
    public List<Category> getData() {
        return categories;
    }
}
